<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">
var a = 'haskxUECihdaYkjhds';
//alert(a.indexOf('y'));
//var l = 'y';
//var c = new RegExp(l);
alert(a.search(/xueci/i));
//alert(a.search(/y/));
</script>
</body>
</html>